package cn.online.taxi.api.listen;

import cn.online.taxi.api.listen.controller.WebSocketController;
import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ImportResource;

/**
 * @Author BinBini
 * @Date 2021/04/14 9:55
 * @Version 1.0
 */
@ImportResource(locations = {"classpath:spring/applicationContext-redis.xml"})
@ServletComponentScan(basePackages = {"cn.online.taxi.common.filter"})
@SpringBootApplication
@EnableDubbo
public class ApiListenOrderApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(ApiListenOrderApplication.class, args);
        WebSocketController.setApplicationContext(context);
    }

}
